<html>
<head><meta charset="utf-8"><title>Compiling rust from source for cross-compile · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compiling.20rust.20from.20source.20for.20cross-compile.html">Compiling rust from source for cross-compile</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="211593592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Compiling%20rust%20from%20source%20for%20cross-compile/near/211593592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Grommish <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compiling.20rust.20from.20source.20for.20cross-compile.html#211593592">(Sep 29 2020 at 08:32)</a>:</h4>
<p>I had previously integrated rustup into the OpenWrt build environment in order to add packages that utilize rustc/cargo.</p>
<p>One of the packages in particular was Suricata.  While I was able to get it to compile, it immediately exits with a SIGILL.</p>
<p>My OpenWrt target is a Mips64 Octeon3 that does not have FPU, and compiles with -msoft-float and kernel FPU emulation.  However, rustup binaries are compiled with -mhard-float. (<a href="https://github.com/rust-lang/rust/pull/50902">https://github.com/rust-lang/rust/pull/50902</a>)</p>
<p>Is there anyway to force the precompiled to use -msoft-float, or am I left building from source?</p>



<a name="211593695"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Compiling%20rust%20from%20source%20for%20cross-compile/near/211593695" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Grommish <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compiling.20rust.20from.20source.20for.20cross-compile.html#211593695">(Sep 29 2020 at 08:33)</a>:</h4>
<p>I've created a <code>mips64-unknown-linux-muslabi64sf.json</code> for when i actually get it to compile.. I'll settle for a hf compile to verify it actually works before moving to that.</p>
<p>Any suggestions would be appreciated.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>